package com.bdmc.smokesensor.dao;

import java.io.Serializable;

import com.bdmc.smokesensor.entity.Sys_ValidateCode;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface Sys_ValidateCodeJPA extends JpaRepository<Sys_ValidateCode,Integer>,JpaSpecificationExecutor<Sys_ValidateCode>,Serializable {

    public Sys_ValidateCode findByValidateCodeAndMobileAndIsUsedAndPurpose(String validateCode,String mobile ,boolean isused,int purpose);

    public Sys_ValidateCode findByMobileAndIsUsedAndPurpose(String mobile ,boolean isused,int purpose);
}